package com.qitianyong.selfclass;

/**
 * Created by qitianyong on 2017/3/7.
 */

public class CONSTANT {

    public static final int MAX_COUNT = 16;
    public static final int MAX_FILES = 2000;
    public static final int MAX_WIDTH = 1280;
    public static final int MAX_HEIGHT = 720;
    public static final int PERMISSION_WRITE_EXTERNAL_STORAGE = 100;

    public class FILELIST_MODE{

        public static final int MODE_SELECTOR = 0;
        public static final int MODE_PLAY = 1;
    }

    public class FILE_OPERATOR{

        public static final int OPERATOR_DELETE = 0;
        public static final int OPERATOR_LOCK = 1;
        public static final int OPERATOR_UNLOCK = 2;
    }

    public class ITEM_TYPE{

        public static final int TYPE_RESOLUTION = 0;
        public static final int TYPE_RECORDTIME = 1;
        public static final int TYPE_SENSOR = 2;
    }

    public class ITEM_FILE_TYPE{

        public static final int TYPE_CYCLE = 0;
        public static final int TYPE_HUNRY = 1;
        public static final int TYPE_PHOTO = 2;
    }

    public class THREAD_ID{

        public static final int ID_COMMAND = 0;  // 基本指令线程ID
        public static final int ID_CHECK_ONLINE = 1; // USB在线指令ID
        public static final int ID_STATUS = 2; // 设备状态线程ID
        public static final int ID_COUNT = 3;
    }

    public class COMMAND{

        public static final int CMD_ALL_FORMAT = 0;   // 获取所有设备支持格式
        public static final int CMD_OPEN_STREAM = 1;  // 开启流通道
        public static final int CMD_SEARCH_FILE = 2;  // 搜索文件
        public static final int CMD_GET_FILEINFO = 3; // 获取文件信息
        public static final int CMD_FILE_CONTROL = 4; // 文件播放控制
        public static final int CMD_GETRECORD_STATUS = 5; // 获取录像状态
        public static final int CMD_SETRECORD_STATUS = 6; // 设置录像状态
        public static final int CMD_PLAYBACK_PROGRESS = 7; // 回放进度
        public static final int CMD_GET_RECORD_TIME = 8;    // 获取录像时长
        public static final int CMD_GET_SENSOR = 9; // 获取传感器灵敏度
        public static final int CMD_GET_RECORD_AUTO_MANAL = 10; // 获取自动/手动录像
        public static final int CMD_GET_RECORD_AUDIO = 11; // 获取音频录制
        public static final int CMD_GET_SDCARD_FORMAT = 12; // SD卡格式化
        public static final int CMD_SET_SDCARD_FORMAT = 13; // SD卡格式化
        public static final int CMD_DEFAULT_FACTORY = 14; // 恢复出厂设置
        public static final int CMD_GET_RECORDER_VERSION = 15; // 获取版本号
        public static final int CMD_GET_RESOLUTION = 16;    // 获取分辨率
        public static final int CMD_SET_RECORD_TIME = 17;    // 设置录像时长
        public static final int CMD_SET_SENSOR = 18; // 设置传感器灵敏度
        public static final int CMD_SET_RECORD_AUTO_MANAL = 19; // 设置自动/手动录像
        public static final int CMD_SET_RECORD_AUDIO = 20; // 设置音频录制
        public static final int CMD_SET_RESOLUTION = 21;    // 设置分辨率
        public static final int CMD_SYNC_TIME = 22; // 时间同步
        public static final int CMD_GETLOCK_PROGRESS = 23; // 获取加锁进度
        public static final int CMD_DELETE_PHOTO = 24;
        public static final int CMD_DELETE_VIDEO = 25;
        public static final int CMD_LOCK_VIDEO = 26;
        public static final int CMD_UNLOCK_VIDEO = 27;
        public static final int CMD_PLAYBACK = 28;
        public static final int CMD_STOP_PLAYBACK = 29;
        public static final int CMD_PAUSE_PLAYBACK = 30;
        public static final int CMD_RESUME_PLAYBACK = 31;
        public static final int CMD_GET_PHOTO = 32;
        public static final int CMD_ENTER_FILELIST = 33;
        public static final int CMD_EXIT_FILELIST = 34;
        public static final int CMD_OPEN_RECORD = 35; // 打开录像

        public static final int CMD_START_STREAM = 36;  // 开始预览流

        public static final int CMD_STOP_STREAM = 37;  // 暂停预览流

        public static final int CMD_SWITCH_CAMERA= 38;  // 切换相机
    }

    public class BOX_TYPE{

        public static final int BOX_EXITAPP = 0;
        public static final int BOX_SDFORMAT = 1;
        public static final int BOX_DEFAULTFACTORY = 2;
    }

    public class LOAD_STATUS{

        public static final int STATUS_LOADING = 0;
        public static final int STATUS_NODATA = 1;
        public static final int STATUS_FINISH = 2;
    }
}
